import java.io.File;

public class Demo_File5 {
    public static void main(String[] args) {
        File file = new File("d:/test/test2/test3");
        System.out.println(file.exists());
        File dest = new File("d:/test/test2/test5");
        System.out.println(dest.exists());
        System.out.println(file.renameTo(dest));
    }
}
